﻿using Admin.Core.Model.Warehouse;
using Admin.Core.Service.Warehouse.XbcWarehouse.Input;
using Admin.Core.Service.Warehouse.XbcWarehouse.Output;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;

namespace Admin.Core.Service.Warehouse.XbcWarehouse
{
    /// <summary>
    /// 映射配置
    /// 双向映射 .ReverseMap()
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            //新增
       
            CreateMap<XbcWarehouseAddInput, XbcWarehouseEntity>();

            //修改
            CreateMap<XbWarehouseUpdateInput, XbcWarehouseEntity>();

            //查询
            CreateMap<XbcWarehouseEntity, XbcWarehouseGetOutput>();
            CreateMap<XbcWarehouseEntity, XbcWarehouseListOutput>();
        }
    }
}
